home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / gnuplot.lha / gnuplot / src / fit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-01  |  1.3 KB  |  60 lines

  1. /* $Id: fit.h 1.1 1993/08/01 04:21:29 cg Exp cg $ */
  2.  
  3. /*
  4.  *    Header file: public functions in fit.c
  5.  *
  6.  *
  7.  *    Copyright of this module:   Carsten Grammes, 1993
  8.  *      Experimental Physics, University of Saarbruecken, Germany
  9.  *
  10.  *    Internet address: cagr@rz.uni-sb.de
  11.  *
  12.  *    Permission to use, copy, and distribute this software and its
  13.  *    documentation for any purpose with or without fee is hereby granted,
  14.  *    provided that the above copyright notice appear in all copies and
  15.  *    that both that copyright notice and this permission notice appear
  16.  *    in supporting documentation.
  17.  *
  18.  *      This software is provided "as is" without express or implied warranty.
  19.  */
  20.  
  21.  
  22. #ifndef FIT_H        /* avoid multiple inclusions */
  23. #define FIT_H
  24.  
  25. #ifdef EXT
  26. #undef EXT
  27. #endif
  28.  
  29. #ifdef FIT_MAIN
  30. #define EXT
  31. #else
  32. #define EXT extern
  33. #endif
  34.  
  35. #include "type.h"
  36. #include "plot.h"
  37.  
  38. #define FIT_SKIP "FIT_SKIP"
  39.  
  40. EXT char    *fit_index;
  41.  
  42.  
  43. /******* public functions ******/
  44.  
  45. EXT void    error_ex (char *s, ...);
  46. EXT char    *get_next_word (char **s, char *subst);
  47.  
  48. #ifdef STRNICMP
  49. EXT int strnicmp (char *s1, char *s2, int n);
  50. #endif
  51.  
  52. EXT void    init_fit ();
  53. EXT void    setvar (char *varname, struct value data);
  54. EXT int     getivar (char *varname);
  55. EXT void    update (char *pfile);
  56. EXT void    do_fit (char *fitfunc, char *datafile, int xcol, int ycol, 
  57.                 int dycol, char *paramsfile);
  58.  
  59. #endif
  60.